home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / rpcsvc / rstat.h < prev    next >
C/C++ Source or Header  |  1990-01-29  |  2KB  |  79 lines

  1. /*    @(#)rstat.h    1.2 88/05/08 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * @(#) from SUN 1.9
  6.  */
  7.  
  8. #ifndef CPUSTATES
  9. #include <sys/dk.h>
  10. #endif
  11.  
  12. #ifndef DST_NONE
  13. #include <sys/time.h>
  14. #endif
  15.  
  16. #define RSTATPROG 100001
  17. #define RSTATVERS_ORIG 1
  18. #define RSTATVERS_SWTCH 2
  19. #define RSTATVERS_TIME  3
  20. #define RSTATVERS 3
  21. #define RSTATPROC_STATS 1
  22. #define RSTATPROC_HAVEDISK 2
  23.  
  24. struct stats {                /* version 1 */
  25.     int cp_time[CPUSTATES];
  26.     int dk_xfer[DK_NDRIVE];
  27.     unsigned v_pgpgin;    /* these are cumulative sum */
  28.     unsigned v_pgpgout;
  29.     unsigned v_pswpin;
  30.     unsigned v_pswpout;
  31.     unsigned v_intr;
  32.     int if_ipackets;
  33.     int if_ierrors;
  34.     int if_opackets;
  35.     int if_oerrors;
  36.     int if_collisions;
  37. };
  38.  
  39. struct statsswtch {                /* version 2 */
  40.     int cp_time[CPUSTATES];
  41.     int dk_xfer[DK_NDRIVE];
  42.     unsigned v_pgpgin;    /* these are cumulative sum */
  43.     unsigned v_pgpgout;
  44.     unsigned v_pswpin;
  45.     unsigned v_pswpout;
  46.     unsigned v_intr;
  47.     int if_ipackets;
  48.     int if_ierrors;
  49.     int if_opackets;
  50.     int if_oerrors;
  51.     int if_collisions;
  52.     unsigned v_swtch;
  53.     long avenrun[3];
  54.     struct timeval boottime;
  55. };
  56. struct statstime {                /* version 3 */
  57.     int cp_time[CPUSTATES];
  58.     int dk_xfer[DK_NDRIVE];
  59.     unsigned v_pgpgin;    /* these are cumulative sum */
  60.     unsigned v_pgpgout;
  61.     unsigned v_pswpin;
  62.     unsigned v_pswpout;
  63.     unsigned v_intr;
  64.     int if_ipackets;
  65.     int if_ierrors;
  66.     int if_opackets;
  67.     int if_oerrors;
  68.     int if_collisions;
  69.     unsigned v_swtch;
  70.     long avenrun[3];
  71.     struct timeval boottime;
  72.     struct timeval curtime;
  73. };
  74.  
  75. int xdr_stats();
  76. int xdr_statsswtch();
  77. int xdr_statstime();
  78. int havedisk();
  79.